//
//  BBHomeHeaderView.h
//  BlockBrowser
//
//  Created by Mac on 2018/3/28.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BBHomeSearchVIew.h"
#import "BBHomeMenuView.h"
#import "BBHomeViewController.h"
#define homeHeaderViewHeight 300
/************首页头部headere******************/
@protocol BBHomeHeaderViewDelegate <NSObject>
- (void)homeHeaderVewSelctedSearchWithTitle:(NSString*)title;
- (void)homeHeaderVewSelctedMenuWithTitle:(NSString*)title;
@end
@interface BBHomeHeaderView : UIView
@property(nonatomic, strong) BBHomeSearchVIew                     *searchView;

@property(nonatomic, strong) BBHomeMenuView                       *menuView;

@property(nonatomic, weak) UITableView  *weakTableView;
@property(nonatomic, weak) BBHomeViewController *weakhomeVC;
@property(nonatomic, weak) id<BBHomeHeaderViewDelegate> delegate;
@property(nonatomic, assign) BOOL   canShowRefreshAnimation;

- (void)scrollviewDidScroll:(UITableView*)scrollView;
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView ;
- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView;
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView;

- (void)menuViewAnimationWithScrollView:(UITableView *)scrollView;
- (void)searchBootomAnimationWithScrollView:(UITableView *)scrollView;
- (void)tabbleHeaderWithScrollView:(UITableView *)scrollView;
@end

